package com.esdk.interfaces;

import com.esdk.esdk;

@FunctionalInterface
public interface Callback<E>{
	void call(E e) throws Exception;

	default void invoke(E e) {
		try{
			call(e);
		}catch (Throwable t){
			throw esdk.tool.wrapThrowble(t);
		}
	}
}
